﻿namespace HCRS.Implementation
{
    using System;

    /// <summary>
    /// 预订信息
    /// </summary>
    public class ResvInfo
    {
        private int _adults = 1;
        private string _airline = "";
        private string _ccexpmonth = "";
        private string _ccexpyear = "";
        private string _ccname = "";
        private string _ccnumber = "";
        private string _cctype = "";
        private string _checkin = "";
        private int _children = 0;
        private string[] _currencycodes;
        private string _cvv = "";
        private string[] _dates;
        private string _firstname = "";
        private string _frequentguestid = "";
        private string _from = "";
        private string _guestaddressline1 = "";
        private string _guestcity = "";
        private string _guestcountry = "";
        private string _guestemail = "";
        private string _guestphone = "";
        private string _gueststatecn = "";
        private string _guestzip = "";
        private string _holdtime = "";
        private string _iata = "";
        private string _lastname = "";
        private string _mobile = "";
        private int _nights = 1;
        private string[] _otherguest;
        private int _pid = 0;
        private string[] _prices;
        private string _ratecode = "";
        private string _remark = "";
        private string _roomcode = "";
        private int _rooms = 1;
        private string[] _specialrequirement;
        private string _specialxml = "";
        private string _subsource = "";
        private string _assuranceCode = "";
        private string _verifycode = "";

        /// <summary>
        /// 成人数
        /// </summary>
        public int adults
        {
            get
            {
                return this._adults;
            }
            set
            {
                this._adults = value;
            }
        }

        /// <summary>
        /// 航班信息
        /// </summary>
        public string airline
        {
            get
            {
                return this._airline;
            }
            set
            {
                this._airline = value;
            }
        }

        /// <summary>
        /// 过期月份
        /// </summary>
        public string ccexpmonth
        {
            get
            {
                return this._ccexpmonth;
            }
            set
            {
                this._ccexpmonth = value;
            }
        }

        /// <summary>
        /// 过期年份
        /// </summary>
        public string ccexpyear
        {
            get
            {
                return this._ccexpyear;
            }
            set
            {
                this._ccexpyear = value;
            }
        }

        /// <summary>
        /// 卡主姓名
        /// </summary>
        public string ccname
        {
            get
            {
                return this._ccname;
            }
            set
            {
                this._ccname = value;
            }
        }

        /// <summary>
        /// 卡号
        /// </summary>
        public string ccnumber
        {
            get
            {
                return this._ccnumber;
            }
            set
            {
                this._ccnumber = value;
            }
        }

        /// <summary>
        /// 卡类型
        /// </summary>
        public string cctype
        {
            get
            {
                return this._cctype;
            }
            set
            {
                this._cctype = value;
            }
        }

        /// <summary>
        /// 入住日期
        /// </summary>
        public string checkin
        {
            get
            {
                return this._checkin;
            }
            set
            {
                this._checkin = value;
            }
        }

        /// <summary>
        /// 儿童数
        /// </summary>
        public int children
        {
            get
            {
                return this._children;
            }
            set
            {
                this._children = value;
            }
        }

        /// <summary>
        /// 价格代码，与日期对应
        /// </summary>
        public string[] currencycodes
        {
            get
            {
                return this._currencycodes;
            }
            set
            {
                this._currencycodes = value;
            }
        }

        /// <summary>
        /// 信用卡验证码
        /// </summary>
        public string cvv
        {
            get
            {
                return this._cvv;
            }
            set
            {
                this._cvv = value;
            }
        }

        /// <summary>
        /// 价格日期，与价格对应
        /// </summary>
        public string[] dates
        {
            get
            {
                return this._dates;
            }
            set
            {
                this._dates = value;
            }
        }

        /// <summary>
        /// 姓
        /// </summary>
        public string firstname
        {
            get
            {
                return this._firstname;
            }
            set
            {
                this._firstname = value;
            }
        }

        /// <summary>
        /// 常客id
        /// </summary>
        public string frequentguestid
        {
            get
            {
                return this._frequentguestid;
            }
            set
            {
                this._frequentguestid = value;
            }
        }

        /// <summary>
        /// 订单来源
        /// </summary>
        public string from
        {
            get
            {
                return this._from;
            }
            set
            {
                this._from = value;
            }
        }

        /// <summary>
        /// 客人地址
        /// </summary>
        public string guestaddressline1
        {
            get
            {
                return this._guestaddressline1;
            }
            set
            {
                this._guestaddressline1 = value;
            }
        }

        /// <summary>
        /// 客人城市
        /// </summary>
        public string guestcity
        {
            get
            {
                return this._guestcity;
            }
            set
            {
                this._guestcity = value;
            }
        }

        /// <summary>
        /// 客人所在国家
        /// </summary>
        public string guestcountry
        {
            get
            {
                return this._guestcountry;
            }
            set
            {
                this._guestcountry = value;
            }
        }

        /// <summary>
        /// 电子邮件
        /// </summary>
        public string guestemail
        {
            get
            {
                return this._guestemail;
            }
            set
            {
                this._guestemail = value;
            }
        }

        /// <summary>
        /// 电话
        /// </summary>
        public string guestphone
        {
            get
            {
                return this._guestphone;
            }
            set
            {
                this._guestphone = value;
            }
        }

        /// <summary>
        /// 客人所在省州
        /// </summary>
        public string gueststatecn
        {
            get
            {
                return this._gueststatecn;
            }
            set
            {
                this._gueststatecn = value;
            }
        }

        /// <summary>
        /// 客人邮编
        /// </summary>
        public string guestzip
        {
            get
            {
                return this._guestzip;
            }
            set
            {
                this._guestzip = value;
            }
        }

        /// <summary>
        /// 保留时间
        /// </summary>
        public string holdtime
        {
            get
            {
                return this._holdtime;
            }
            set
            {
                this._holdtime = value;
            }
        }

        /// <summary>
        /// 公司iata
        /// </summary>
        public string iata
        {
            get
            {
                return this._iata;
            }
            set
            {
                this._iata = value;
            }
        }

        /// <summary>
        /// 名
        /// </summary>
        public string lastname
        {
            get
            {
                return this._lastname;
            }
            set
            {
                this._lastname = value;
            }
        }

        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile
        {
            get
            {
                return this._mobile;
            }
            set
            {
                this._mobile = value;
            }
        }

        /// <summary>
        /// 过夜天数
        /// </summary>
        public int nights
        {
            get
            {
                return this._nights;
            }
            set
            {
                this._nights = value;
            }
        }

        /// <summary>
        /// 客人姓名
        /// </summary>
        public string[] otherguest
        {
            get
            {
                return this._otherguest;
            }
            set
            {
                this._otherguest = value;
            }
        }

        /// <summary>
        /// 酒店pid
        /// </summary>
        public int pid
        {
            get
            {
                return this._pid;
            }
            set
            {
                this._pid = value;
            }
        }

        /// <summary>
        /// 价格，与日期对应
        /// </summary>
        public string[] prices
        {
            get
            {
                return this._prices;
            }
            set
            {
                this._prices = value;
            }
        }

        /// <summary>
        /// 价格代码
        /// </summary>
        public string ratecode
        {
            get
            {
                return this._ratecode;
            }
            set
            {
                this._ratecode = value;
            }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark
        {
            get
            {
                return this._remark;
            }
            set
            {
                this._remark = value;
            }
        }

        /// <summary>
        /// 房型代码
        /// </summary>
        public string roomcode
        {
            get
            {
                return this._roomcode;
            }
            set
            {
                this._roomcode = value;
            }
        }

        /// <summary>
        /// 房间数
        /// </summary>
        public int rooms
        {
            get
            {
                return this._rooms;
            }
            set
            {
                this._rooms = value;
            }
        }

        /// <summary>
        /// 客人特殊需求
        /// </summary>
        public string[] specialrequirement
        {
            get
            {
                return this._specialrequirement;
            }
            set
            {
                this._specialrequirement = value;
            }
        }

        /// <summary>
        /// 特殊xml节点字符串（扩展）
        /// </summary>
        public string specialxml
        {
            get
            {
                return this._specialxml;
            }
            set
            {
                this._specialxml = value;
            }
        }

        /// <summary>
        /// 网络来源
        /// </summary>
        public string subsource
        {
            get
            {
                return this._subsource;
            }
            set
            {
                this._subsource = value;
            }
        }

        /// <summary>
        /// 担保标志
        /// </summary>
        public string assuranceCode
        {
            get
            {
                return string.IsNullOrEmpty(_ccnumber) || string.IsNullOrEmpty(_ccname) || _ccnumber == "-" || _ccname == "-" ? "0" : "1";
            }
        }

        /// <summary>
        /// 订单唯一标示号
        /// </summary>
        public string verifycode
        {
            get
            {
                return this._verifycode;
            }
            set
            {
                this._verifycode = value;
            }
        }
    }
}

